extends Node2D
@onready var test_3: Node2D = $"."

var target_position = Vector2()


func _ready() -> void:
	var right_1 = preload("res://layout/test2.tscn").instantiate()
	right_1.position=Vector2(200, 200)
	right_1.connect("my_signal", Callable(self, "_on_my_signal") )
	test_3.add_child(right_1)
	right_1.setImage("res://animation/test1.tres", "guard_3", "燕山雪")


func _process(delta: float) -> void:
	pass


func _on_my_signal(info: Vector2, size: Vector2):
	target_position=Vector2(info.x+(size.x/2), info.y)
